//
//  ZCBaseViewController.h
//  ZCLive
//
//  Created by 彭军 on 2017/11/12.
//  Copyright © 2017年 Elvis. All rights reserved.
//


#import <UIKit/UIKit.h>
#import "NSString+TitleSize.h"
#define KZCBundleImg(path)[@"ZCLiveSDKBundle.bundle" stringByAppendingPathComponent:path]

#define NLColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define NLRGB(r, g, b)             [UIColor colorWithRed:((r) / 255.0) green:((g) / 255.0) blue:((b) / 255.0) alpha:1.0]

//测试环境
#define ZCHTTP @"https://survey.zhongchebaolian.com/zc-survey-admin"
//正式环境
//#define ZCHTTP @"https://chakan.zhongchebaolian.com/zc-survey-admin"

typedef void (^ZCCloseBlock)(BOOL success,NSString *info);

@interface ZCBaseViewController : UIViewController
/**
 *  是否允许滑动返回上一页，默认YES
 */
@property (nonatomic, assign) BOOL enableBackGesture;

- (void)createRightBarButtonItemWithTarget:(id)target action:(SEL)action normalImage:(UIImage *)nImage highlightedImage:(UIImage *)hImage;
- (void)createRightBarButtonItemWithTarget:(id)target action:(SEL)action title:(NSString *)title;
@end
